package com.chess.echo.module.gameserver.impl;

import com.chess.echo.module.gameserver.GameServer;
import com.chess.manager.GameServerManager;
import com.chess.protobuf.EchoMsg.GameServerRegisterRequest;
import com.sojoys.artifact.exception.LogicModelException;
import com.sojoys.artifact.factory.session.ISession;

public class GameServerImpl implements GameServer {

	@Override
	public byte[] Register(ISession session, GameServerRegisterRequest request) throws LogicModelException {
		System.out.println("--------> " + request);
		GameServerManager.addCache(session.getId().toString(), request);
		return null;
	}


}
